
line = [x for x in range(2,100)]

for i in range(2,100):
    for j in range(2,i+1):
        if i%j==0:
            if i != j:
                line.remove(i)
                break

print(line)

sum = 0
for x in line:
    if x < 10:
        sum = sum + x

print(sum**2)



